<div class="well">
  <form name="createForm" class="form-horizontal" role="form"
        ng-submit="send('user.create', user_new);">

    <div class="form-group">
      <label class="col-sm-2 control-label required">登录账号</label>
      <div class="col-sm-10">
        <input type="text" class="form-control" placeholder="只允许字母、数字和下划线" ng-model="user_new.login" required>
      </div>
    </div>

    <div class="form-group">
      <label class="col-sm-2 control-label required">真实姓名</label>
      <div class="col-sm-10">
        <input type="text" class="form-control" ng-model="user_new.name" required>
      </div>
    </div>


    <div class="form-group">
      <label class="col-sm-2 control-label required">用户口令</label>
      <div class="col-sm-10">
        <input type="password" class="form-control" ng-model="user_new.password" required>
      </div>
    </div>


    <div class="form-group">
      <label class="col-sm-2 control-label">电子邮件</label>
      <div class="col-sm-10">
        <input type="text" class="form-control" ng-model="user_new.mail">
      </div>
    </div>


    <div class="form-group">
      <label class="col-sm-2 control-label">手机号码</label>
      <div class="col-sm-10">
        <input type="text" class="form-control" ng-model="user_new.mobile">
      </div>
    </div>

    <div class="form-group">
      <div class="col-sm-offset-2 col-sm-10">
        <input class="btn btn-primary" type="submit" ng-disabled="createForm.$invalid"/>
        或者
        <a ui-sref="setting.user">取消</a>
      </div>
    </div>
  </form>
</div>
